import { handleActions } from 'redux-actions' 
import { savaProducts } from '../actions/product.actions'

const initialState = []
const handleProducts = (state, action) => action.payload

const productReducer =  handleActions({
  [savaProducts]: handleProducts
}, initialState)

export default productReducer